package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 *  事件处理记录
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("ck_device_welding_record")
public class DeviceWeldingRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer wxUserId;
	private Integer shopId;
	private String shopName;
	private Integer deviceId;
	private String deviceNum;
	private String deviceName;
	private Integer isSelf;
	private Integer isSafe;
	private Integer deviceType;


	private Integer fireWorkId;
	private Double lng;
	private Double lat;
	private String useAddress;
	private String workerName;
	private String workerPhone;
	private String certificateNum;

	/**
	 *  开始时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date useBeginTime;

	/**
	 *  结束时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date useEndTime;



	/**
	 * 0 - 待审核 1 - 审核通过 2 - 审核驳回
	 */
	private Integer departCheckState;
	private String departCheckResult;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date departCheckTime;
	private String departCheckUserName;
	private Integer checkDepartId;
	private Long checkSysUserId;


	// 生产经理
	private Integer managerSysUserId;
	private Integer	managerCheckState;
	private Date managerCheckTime;
	private String managerCheckResult;






	private String imgUrl;

	/**
	 *  工作图片
	 */
	private String workImg;

	/**
	 *  安全措施图片
	 */
	private String measureImg;
	/**
	 * 借还状态  0 -换  1 - 借
	 */
	private Integer useState;

	/**
	 *  0 - 新申请  1 - 结束  2 - 归还
	 */
	private Integer state;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;


	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date rebackTime;


	@TableField(exist = false)
	private List<DeviceWeldingRecordImg> recordImgs;


	/**
	 *   是否有 审核权限
	 */
	@TableField(exist = false)
	private Integer isCanCheck = 0;


}
